package com.wn.sddfp.sms;

import com.wn.sddfp.sms.config.SmsTemplate;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.StringRedisTemplate;

@SpringBootTest
public class App {

    @Autowired
    private SmsTemplate smsTemplate;

    @Test
    public void sendSms(){
        smsTemplate.sendSms("18566230139","1233");
    }

    @Autowired
    private StringRedisTemplate stringRedisTemplate;

    @Test
    public void demo01(){

        stringRedisTemplate.opsForValue().set("hello","world");


    }
}